# Contributor: Sodface <sod@sodface.com>
# Maintainer: Sodface <sod@sodface.com>
pkgname=clifm
pkgver=1.15
pkgrel=0
pkgdesc="CLI file manager"
url="https://github.com/leo-arch/clifm"
arch="all"
license="GPL-2.0-or-later"
makedepends="
	acl-dev
	bsd-compat-headers
	file-dev
	gettext-tiny-dev
	libcap-dev
	readline-dev
	"
options="!check" # no test suite
subpackages="$pkgname-doc $pkgname-bash-completion $pkgname-zsh-completion $pkgname-fish-completion"
source="https://github.com/leo-arch/clifm/releases/download/v$pkgver/clifm-$pkgver.tar.gz
	begin-decls.patch
	"

build() {
	make
}

package() {
	make PREFIX=/usr MANDIR=/usr/share/man DESTDIR="$pkgdir" install
}

sha512sums="
812d1ebb0d8b157e60bc55102e74738e611dd609294eb65da5b1aac4ee3cff947558dde658037c9558113266e92525582aac22a3ed084797367166b4d41ce9c1  clifm-1.15.tar.gz
9db3b9ee57bfebd1e8d7ed3bb3a2b78499126944f4051b354095dfd4a89bfc897e9408e24695aa1748517f7facd770c7d94baaaaae9415abe1abe2468d286381  begin-decls.patch
"
